import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity({ name: 'zongju' })
export class Zongju extends BaseEntity {
  @PrimaryGeneratedColumn({ type: 'int', name: 'id', comment: '链路的id' })
  id: number;
  @Column({
    type: 'varchar',
    name: 'lianlu_code',
    comment: '链路的编号',
  })
  lianlu_code: string;
  @Column({
    type: 'varchar',
    name: 'lianlu_name',
    nullable: false,
    comment: '链路的名称',
  })
  lianlu_name: string;
  @Column('varchar', {
    name: 'lianlu_start',
    nullable: false,
    comment: '链路起始库',
  })
  lianlu_start: string;
  @Column({
    type: 'varchar',
    name: 'lianlu_end',
    nullable: false,
    comment: '链路的终止库',
  })
  lianlu_end: string;
  @Column({
    type: 'int',
    name: 'lianlu_status',
    default: 0,
    comment: '链路的状态',
  })
  lianlu_status: number;
}
